import { Injectable } from '@nestjs/common';
import { PrismaService } from '../prisma.service';

@Injectable()
export class UploadService {
  constructor(
    private readonly mysql: PrismaService,
  ) {}

  async saveMessage(type: 'cyc' | 'xyq', message: string, images: string) {
    await this.mysql.message.create({
      data: {
        type,
        message,
        images,
      }
    })
  }
}
